#include <stdio.h>
#include <float.h>
int main(void)
{
    double a = 1.0 / 3.0;
    float b = 1.0 / 3.0;

    printf("float values: ");
    printf("%.6f %.12f %.18f\n", b, b, b);
    printf("double values: ");
    printf("%.6f %.12f %.18f\n", a, a, a);
    printf("FLT_DIG is %d\n", FLT_DIG);
    printf("DBL_DIG is %d\n", DBL_DIG);

    return 0;
}